<div class="namhocs view">
<h2><?php  __('Namhoc');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $namhoc['Namhoc']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Namhoc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $namhoc['Namhoc']['namhoc']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaybd'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $namhoc['Namhoc']['ngaybd']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaykt'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $namhoc['Namhoc']['ngaykt']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Namhoc', true), array('action' => 'edit', $namhoc['Namhoc']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Namhoc', true), array('action' => 'delete', $namhoc['Namhoc']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $namhoc['Namhoc']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Namhocs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Namhoc', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khoas', true), array('controller' => 'khoas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khoa', true), array('controller' => 'khoas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Namhochockies', true), array('controller' => 'namhochockies', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Namhochocky', true), array('controller' => 'namhochockies', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Khoas');?></h3>
	<?php if (!empty($namhoc['Khoa'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ma Khoa'); ?></th>
		<th><?php __('Ten Khoa'); ?></th>
		<th><?php __('Namhoc Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($namhoc['Khoa'] as $khoa):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $khoa['id'];?></td>
			<td><?php echo $khoa['ma_khoa'];?></td>
			<td><?php echo $khoa['ten_khoa'];?></td>
			<td><?php echo $khoa['namhoc_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'khoas', 'action' => 'view', $khoa['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'khoas', 'action' => 'edit', $khoa['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'khoas', 'action' => 'delete', $khoa['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $khoa['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Khoa', true), array('controller' => 'khoas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Namhochockies');?></h3>
	<?php if (!empty($namhoc['Namhochocky'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Namhoc Id'); ?></th>
		<th><?php __('Hocky Id'); ?></th>
		<th><?php __('Ngaybd'); ?></th>
		<th><?php __('Ngaykt'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($namhoc['Namhochocky'] as $namhochocky):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $namhochocky['id'];?></td>
			<td><?php echo $namhochocky['namhoc_id'];?></td>
			<td><?php echo $namhochocky['hocky_id'];?></td>
			<td><?php echo $namhochocky['ngaybd'];?></td>
			<td><?php echo $namhochocky['ngaykt'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'namhochockies', 'action' => 'view', $namhochocky['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'namhochockies', 'action' => 'edit', $namhochocky['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'namhochockies', 'action' => 'delete', $namhochocky['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $namhochocky['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Namhochocky', true), array('controller' => 'namhochockies', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
